﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using ajayumi.develop.win32.Transport.WCF.Services.DataContracts;

namespace ajayumi.develop.win32.Transport.WCF.Services.Interfaces
{
    /// <summary>
    /// IDownloadFile.cs 下载文件接口定义
    /// Author   : 黄乙冬
    /// Date     : 2011-11-09
    /// </summary>
    [ServiceContract(SessionMode = SessionMode.Required)]
    public interface ITransportDownload
    {
        /// <summary>
        /// 初始化下载
        /// </summary>
        /// <param name="file"></param>
        /// <returns></returns>
        [OperationContract(IsInitiating = true)]
        TransFileInfo InitDownloadFile(TransFileInfo file);

        /// <summary>
        /// 下载文件
        /// </summary>
        /// <param name="file"></param>
        /// <returns></returns>
        [OperationContract]
        TransFileInfo DownloadFile(TransFileInfo file);
    }
}
